package com.example.modelfunction.shrio.jwt;

import com.example.base.SpringContextHolder;
import com.example.modelfunction.shrio.usermanager.mode.User;
import com.example.modelfunction.shrio.usermanager.repository.UserRepository;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.UsernamePasswordToken;

public class JWTToken extends UsernamePasswordToken {
    private String token;

    public JWTToken(String token) {
        this.token = token;

    }
    @Override
    public Object getPrincipal() {
        return token;
    }


    @Override
    public Object getCredentials() {
        return token;
    }
}
